//checkbox全选
function checkboxChooseAll(){
	
	var allStatus = $("[name='All']").attr("checked");
	
	$("[name='each[]']").attr("checked",allStatus);
}

//按钮全选;
function buttonChooseAll(){
	var allStatus = $("[name='All']").attr("checked");
		if(allStatus == true){
			$("[name='All']").attr("checked",false);
			$("[name='each[]']").attr("checked",false);
		}else{
			$("[name='All']").attr("checked",true);
			$("[name='each[]']").attr("checked",true);
		}

}
//反选按钮   这个只加载user[]上  userAll不加
function buttonReChoose(){
	var userAll = $("[name='each[]']");
	userAll.each(function(index){
		if($(this).attr("checked")){
			$(this).attr("checked",false);
		}else{
			$(this).attr("checked",true);
		}
	});
}